import type { roleInfoType } from "../role/type";

export interface loginType {
  username: string;
  password: string;
  code?: string;
}

export interface userInfoType {
  id: string;
  username: string;
  email?: string;
  phone: string;
  name: string;
  roleIds: string[];
  password?: string;
  roles: roleInfoType[];
  birthday?: string | undefined;
  status: number;
  remark?: string;
  auth: number | string;
  gender?: number;
  create_time?: string;
  update_time?: string;
}

export interface changePasswordType {
  oldPassword: string;
  newPassword: string;
  confirmPassword: string;
}
